package com.ruoyi.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.cinema.BO.SubRequestBO;
import com.ruoyi.cinema.BO.SubTicketBO;
import com.ruoyi.order.domain.TicketOrderTicketInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 影票订单影票信息Mapper接口
 *
 * @author ruoyi
 * @date 2020-12-18
 */
public interface TicketOrderTicketInfoMapper extends BaseMapper<TicketOrderTicketInfo> {
    /**
     * 查询影票订单影票信息
     *
     * @param id 影票订单影票信息ID
     * @return 影票订单影票信息
     */
    public TicketOrderTicketInfo selectTicketOrderTicketInfoById(Long id);

    /**
     * 查询影票订单影票信息列表
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 影票订单影票信息集合
     */
    public List<TicketOrderTicketInfo> selectTicketOrderTicketInfoList(TicketOrderTicketInfo ticketOrderTicketInfo);

    /**
     * 新增影票订单影票信息
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 结果
     */
    public int insertTicketOrderTicketInfo(TicketOrderTicketInfo ticketOrderTicketInfo);

    /**
     * 修改影票订单影票信息
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 结果
     */
    public int updateTicketOrderTicketInfo(TicketOrderTicketInfo ticketOrderTicketInfo);

    /**
     * 删除影票订单影票信息
     *
     * @param id 影票订单影票信息ID
     * @return 结果
     */
    public int deleteTicketOrderTicketInfoById(Long id);

    /**
     * 批量删除影票订单影票信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTicketOrderTicketInfoByIds(Long[] ids);


    List<SubTicketBO> selectUnSubSellTicket();
    List<SubTicketBO> selectUnSubRefundTicket();

    int updateSubSell(@Param(value = "ids") List<String> ids);

    int updateSubRefund(@Param(value = "ids") List<String> ids);

    List<SubTicketBO> selectTicket(SubRequestBO subRequestBO);
}
